package com.linfeng.component.mybatisplus.executor.qry;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linfeng.component.mybatisplus.entity.impl.Entity;
import com.linfeng.component.mybatisplus.event.qry.PageQry;
import org.springframework.beans.factory.annotation.Autowired;

public class PageQryExe<D, E extends Entity> {

    @Autowired
    private E entity;

    public <Q extends PageQry> IPage<D> execute(Q q) {

        IPage page = entity.page(q);

        return page;
    }
}
